package com.tengju.user.infrastructure.persistence.mybatis.mapper.dealer.custom;

import com.tengju.user.infrastructure.persistence.mybatis.dataobject.UserProtocolDO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

@Mapper
public interface UserProtocolMapper {

    @Insert({
            "insert into user_archive_protocol_confirm (user_id, protocol_type, protocol_version, confirm_time, deleted)",
            "values (#{userId}, #{protocolType}, #{protocolVersion}, #{agreeTime}, 0)"
    })
    int insert(UserProtocolDO protocol);

}
